package cc.itez.wx.linkman.mould;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.function.Function;

@Data
@Accessors(chain = true)
public class CmdInfo {
    public CmdInfo(Command command) {
        this.command = command;
        this.step = 0;
    }

    /**
     * 命令
     */
    private Command command;
    /**
     * 当前步骤
     */
    private int step;
    /**
     * 信息
     */
    private String info;
    /**
     * 参数
     */
    private String args;
    /**
     * 下一步
     */
    private Function<WxMessage, String> next;
}
